﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataEventBinders.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// <summary>
//   Defines the DataEventBinders type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.ComponentModel
{
    using System.Collections.Specialized;
    using System.ComponentModel;

    public static class DataEventBinders
    {
        public static readonly IEventBinder<INotifyPropertyChanged, PropertyChangedEventHandler>
            PropertyChanged = EventBinder.Get<INotifyPropertyChanged, PropertyChangedEventHandler>("PropertyChanged");

        public static readonly IEventBinder<INotifyCollectionChanged, NotifyCollectionChangedEventHandler>
            CollectionChanged = EventBinder.Get<INotifyCollectionChanged, NotifyCollectionChangedEventHandler>("CollectionChanged");

#if SILVERIGHT
        public static readonly IEventBinder<INotifyDataErrorInfo, EventHandler<DataErrorsChangedEventArgs>>
            ErrorsChanged = EventBinder.Get<INotifyDataErrorInfo, EventHandler<DataErrorsChangedEventArgs>>("ErrorsChanged");
#endif
    }
}